package ebcs.database.mybatis.dao;

import ebcs.database.bean.BsUserDetailInfo;
import ebcs.database.bean.BsUserInfor;
import ebcs.database.bean.BsUserInforExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface BsUserInforMapper {
    int deleteByExample(BsUserInforExample example);

    int insert(BsUserInfor record);

    int insertSelective(BsUserInfor record);

    List<BsUserInfor> selectByExample(BsUserInforExample example);

    List<BsUserDetailInfo> selectUserDetail(BsUserDetailInfo detailInfo);

    int updateUserStatus(BsUserInfor infor);

    int updateUserByUserNo(BsUserInfor infor);
    
    /**
     * 用户后台登录方法
     * @param userName
     * @param password
     * @return
     */
    List<BsUserInfor> adminLogin(String phoneNo,String password);
    
    /**
     * 根据用户rouid查询该团队下所有注册未通过审批的用户
     * @param groupNo
     * @return
     */
    List<BsUserDetailInfo> selectNoPassRegUserByRouid(@Param("rouid")String rouid);
    
    int updateOpenidtoNullByRouid(String rouid);

	BsUserInfor getProTeamNo(String userNo);
}